﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using System.Collections.ObjectModel;

namespace HeritageAcademy.Models.DataModels
{
    /// <remarks/>
    [SerializableAttribute]
    [DesignerCategoryAttribute(@"code")]
    [XmlTypeAttribute(AnonymousType = true)]
    [XmlRootAttribute(Namespace = "", IsNullable = false)]
    public class TestWizard
    {
        ObservableCollection<TestPage> _testPage;
        string _id;
        string _maxLevel;
        string _title;
        string _description;

        /// <remarks/>
        [XmlElementAttribute("TestPage", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public ObservableCollection<TestPage> TestPage
        {
            get { return _testPage; }
            set { _testPage = value; }
        }

        /// <remarks/>
        [XmlAttributeAttribute]
        public string Id
        {
            get { return _id; }
            set { _id = value; }
        }

        /// <remarks/>
        [XmlAttributeAttribute]
        public string MaxLevel
        {
            get { return _maxLevel; }
            set { _maxLevel = value; }
        }

        /// <remarks/>
        [XmlAttributeAttribute]
        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        /// <remarks/>
        [XmlAttributeAttribute]
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }
    }

    /// <remarks/>
    [SerializableAttribute]
    [DesignerCategoryAttribute(@"code")]
    [XmlTypeAttribute(AnonymousType = true)]
    public class TestPage
    {
        string _id;
        string _source;
        string _level;
        string _title;
        string _description;
        string _code;

        /// <remarks/>
        [XmlAttributeAttribute]
        public string Id
        {
            get { return _id; }
            set { _id = value; }
        }

        /// <remarks/>
        [XmlAttribute]
        public string Source
        {
            get { return _source; }
            set { _source = value; }
        }

        /// <remarks/>
        [XmlAttribute]
        public string Level
        {
            get { return _level; }
            set { _level = value; }
        }

        /// <remarks/>
        [XmlAttribute]
        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        /// <remarks/>
        [XmlAttribute]
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        /// <remarks/>
        [XmlAttribute]
        public string Code
        {
            get { return _code; }
            set { _code = value; }
        }
    }
}